package com.maltys.jedis.utils;

import redis.clients.jedis.Jedis;

public class RedisClient {
    private static Jedis REDIS_CLIENT;

    public static Jedis getInstance() {
        if (REDIS_CLIENT == null) {
            REDIS_CLIENT = new Jedis("localhost", 6379);
            REDIS_CLIENT.auth("luonankun123");
        }
        return REDIS_CLIENT;
    }
}
